package com.zretc.entity;

/**
 * 1 :N 关系中，Blog一侧属于 N的一侧。
 * @author Administrator
 *
 */
public class Blog {
	//属性
	private int id;  //简单类型 数字格式类型  0
	private String title;//成员来说 如果不赋值  null
	private String content;
	private Author author;//这里有变化,得到一个blog对象同时也能得到其author信息
	
	
	@Override
	public String toString() {
		return "Blog [id=" + id + ", title=" + title + ", content=" + content + "]";
	}
	public int getId() {
		return id;
	}
	public void setId(int id) {
		this.id = id;
	}
	public String getTitle() {
		return title;
	}
	public void setTitle(String title) {
		this.title = title;
	}
	public String getContent() {
		return content;
	}
	public void setContent(String content) {
		this.content = content;
	}
	public Author getAuthor() {
		return author;
	}
	public void setAuthor(Author author) {
		this.author = author;
	}
	
	

	
	
	
}
